<template>
  <div>
    <el-image :src="img" class="img-container">
      <div slot="error" class="image-slot">
        <img src="./head.jpg" alt="">
      </div>
    </el-image>
  </div>
</template>
<script>
export default {
  name: 'ImageHolder',
  props: {
    img: {
      type: String,
      default: ''
    }
  }
}
</script>
<style scoped lang="scss">
.img-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;

  img {
    width: 100%;
  }
}
</style>
